package com.kun.index.service;

import com.kun.index.entity.Advertisement;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.HashMap;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 广告表 服务类
 * </p>
 *
 * @author kunkun
 * @since 2024-04-05
 */
public interface AdvertisementService extends IService<Advertisement> {


    //查询所有的广告信息
    Map<String, Object> queryAdvertisements(HashMap<String, Object> map);

    //新增广告,返回id
    Integer addAdvertisement(Advertisement advertisement);

    //根据id查询广告
    Advertisement queryAdvertisementById(Integer advertisementId);

    //根据id更新广告
    Integer updateAdvertisement(Advertisement advertisement);

    //删除广告
    int deleteAdvertisement(Advertisement advertisement);

    //批量删除广告
    int batchDeleteInform(List<Integer> ids);
}
